package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.AccountDzdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface AccountDzdService extends BaseService<AccountDzdBean> {

	AccountDzdBean getAccountDzdBeanById(String id) throws Exception;
	
	void removeAccountDzdBeanById(String id) throws Exception;
	
	void removeAccountDzdBeanByIds(String ids) throws Exception;
	
	AccountDzdBean saveAccountDzdBean(AccountDzdBean crm) throws Exception;
	
	AccountDzdBean updateAccountDzdBean(AccountDzdBean crm) throws Exception;
	
	Page<AccountDzdBean>  findAccountDzdBeanByCond(AccountDzdBean bean,
			Page<AccountDzdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveAccountDzdBeanExt(String sql) throws Exception;

	String findAccountDzdBeanExtCreate(String tableName) throws Exception;

	String findAccountDzdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findAccountDzdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasAccountDzdBeanExtData(String tableName, String id)
			throws Exception;
}